{{- $path := printf "%s" . }}
{{- with resources.Get $path }}
  {{ .Content | safeHTML }}
{{- else }}
  {{- errorf "The 'svg' partial was unable to find %s" $path }}
{{- end }}
